#ifndef VIDEO_H
#define VIDEO_H

#include <QObject>
#include <QImage>
#include "mqtthandler.h"

class Video : public QObject
{
    Q_OBJECT
public:
    explicit Video(MqttHandler *mqtt, QObject *parent = nullptr);
    void StartStream();
    void StopStream();
signals:
    void frameReceived(QImage frame);
private slots:
    void processVideoData(const QByteArray &data);
private:
    MqttHandler *m_mqtt;
    QTimer *m_requestTimer;
};

#endif // VIDEO_H

